package oop.constructor;

/**
 * Created with IntelliJ IDEA.
 * ClassName: PersonTest
 * Package: oop.constructor
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-20
 * Time: 15:03
 */

public class PersonTest {
    public static void main(String[] args) {

        //new Person() 这个Person() 就是一个构造器
        Person p1 = new Person(10);

        p1.eat();

    }
}
